package com.example.springboot_demo01.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("tb_trade")
public class Trade {
    @TableId(type = IdType.AUTO)
    private  int id;

    @ApiModelProperty("订单编号")
    @TableField("trade_no")
    private  String tradeNo;

    @ApiModelProperty("金额")
    @TableField("total_money")
    private  double totalMoney;

    @ApiModelProperty("状态")
    @TableField("status")
    private  int status;

}
